<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>党员帮扶添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../style/wangeditor.css">
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加帮扶任务信息':action=='Modify'?'修改帮扶任务信息':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'party_members_assistance', 'form': 'dataForm' ,'primary_key':'Assistance_SerialNumber' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">帮扶任务信息</div>
        </div>
        <el-form :model="dataForm" ref="form" inline-message="true" style="width: 100%">
          <el-descriptions :column="1" size="large" border>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">帮扶任务名称</div>
              </template>
              <el-form-item prop="Assistance_Name"
                :rules="[{ required: true, message: '请选择被帮扶任务名称', trigger: 'blur' }]">
                <el-input class="borderless-input" v-model="dataForm.Assistance_Name" placeholder="请输入帮扶任务名称" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">被帮扶党员</div>
              </template>
              <el-form-item prop="Assisted_Party_Member_SerialNumber"
                :rules="[{ required: true, message: '请选择被帮扶党员', trigger: 'change' }]">
                <!-- <el-select clearable v-model.trim="dataForm.Assisted_Party_Member_SerialNumber" placeholder="请选择被帮扶党员" filterable
                  style="width: 100%">
                  <el-option v-for="(item,index) in assistance" :key="index" :label="item.Personal_Name"
                    :value="item.Party_Member_SerialNumber"></el-option>
                </el-select> -->
                <yl-select v-model="dataForm.Assisted_Party_Member_SerialNumber" clearable filterable placeholder="请选择被帮扶党员" 
                    :options="assistance" :props="{value:'Party_Member_SerialNumber',label:'Personal_Name'}">
                    <el-table-column prop="Party_Member_SerialNumber" min-width="180" show-overflow-tooltip label="党员编号"></el-table-column>
                    <el-table-column prop="ID_Card_Number" min-width="180" show-overflow-tooltip label="身份证号"></el-table-column>
                    <el-table-column prop="Personal_Name" min-width="180" show-overflow-tooltip label="党员姓名"></el-table-column>
                    <el-table-column prop="Contact_Phone" min-width="180" label="联系方式"></el-table-column>
                  </yl-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">帮扶党组</div>
              </template>
              <el-form-item prop="Assisting_Party_Organization_SerialNumber"
                :rules="[{ required: true, message: '请选择帮扶党组', trigger: 'change' }]">
                <!-- <el-select clearable v-model.trim="dataForm.Assisting_Party_Organization_SerialNumber" placeholder="请选择帮扶党组" filterable
                  style="width: 100%">
                  <el-option v-for="(item,index) in organization" :key="index" :label="item.Party_Organization_Name"
                    :value="item.Party_Organization_SerialNumber"></el-option>
                </el-select> -->
                <yl-cascader v-model="dataForm.Assisting_Party_Organization_SerialNumber" filterable
                 :props="{value:'Party_Organization_SerialNumber',label:'Party_Organization_Name',children:'children',checkStrictly: true}"
                   placeholder="请选择帮扶党组" :options="organization1" style="width: 100%"></yl-cascader>
              </el-form-item>
            </el-descriptions-item>
            <!-- <el-descriptions-item>
              <template #label>
                <div class="cell-item">帮扶类型</div>
              </template>
              <el-form-item prop="Assisting_Party_Organization_SerialNumber"
                :rules="[{ required: true, message: '请选择帮扶类型', trigger: 'change' }]">
                <el-select clearable v-model.trim="dataForm.Assistance_Type_SerialNumber" placeholder="请选择帮扶类型" filterable
                  style="width: 100%">
                  <el-option v-for="(item,index) in type" :key="index" :label="item.Assistance_Type_Name"
                    :value="item.Assistance_Type_SerialNumber"></el-option>
                </el-select>
              </el-form-item>
            </el-descriptions-item> -->
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">最低帮扶次数</div>
              </template>
              <el-form-item prop="Assistance_Numbers" :rules="[{ required: true, message: '请输入帮扶次数', trigger: 'blur' }]">
                <el-input class="borderless-input" v-model="dataForm.Assistance_Numbers" placeholder="请输入帮扶次数" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">家庭情况</div>
              </template>
              <el-form-item prop="Assistance_Situation" :rules="[{ required: true, message: '请输入家庭情况', trigger: 'blur' }]">
                <el-input  type="textarea" :autosize="{ minRows: 2}" class="borderless-input" v-model="dataForm.Assistance_Situation" placeholder="请输入家庭情况" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">帮扶措施</div>
              </template>
              <el-form-item prop="Measure" :rules="[{ required: true, message: '请输入帮扶措施', trigger: 'blur' }]">
                <el-input type="textarea"
                :autosize="{ minRows: 4}" class="borderless-input" v-model="dataForm.Measure" placeholder="请输入帮扶措施" />
              </el-form-item>
            </el-descriptions-item>
            <!-- <el-descriptions-item>
              <template #label>
                <div class="cell-item">帮扶效果</div>
              </template>
              <el-form-item prop="Effect" :rules="[{ required: true, message: '请选择帮扶效果', trigger: 'blur' }]">
                <el-input class="borderless-input" v-model="dataForm.Effect" placeholder="请选择帮扶效果" />
              </el-form-item>
            </el-descriptions-item> -->
          </el-descriptions>
  
        </el-form>
      </div>
      
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>